<#assign tit><#if _oper='add'>新增<#else>修改</#if>采购合同</#assign>
<@page.html title=tit>
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<div style="width:480px; float:left;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input">
        <tr>
          <th width="25%">合同编号</th>
          <td width="75%" colspan="3"><#if _oper='add'><input type="text" name="contractCode" value="${pssPurcContract.contractCode!}" req="合同编号" size="10" maxlength="50"><#else><input type="hidden" name="contractCode" value="${pssPurcContract.contractCode!}">${pssPurcContract.contractCode!}</#if></td>
        </tr>
        <tr>
          <th>结算方式</th>
          <td colspan="3"><select name="payMode"><#if PayMode??><#list PayMode as t><option value="${t.id}"<#if pssPurcContract.payMode?? && pssPurcContract.payMode=t.id> selected</#if>>${t.name}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>供应商编号</th>
          <td colspan="3"><select name="providerCode" style="width:180px;"><option value=""></option><#if providerList??><#list providerList as t><option value="${t.id}"<#if pssPurcContract.providerCode?? && pssPurcContract.providerCode=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>开始日期</th>
          <td><input type="text" name="beginTime" value="${pssPurcContract.beginTime!}" onclick="cal(this);" req="开始日期" size="10" maxlength="10"></td>
          <th>结束日期</th>
          <td><input type="text" name="endTime" value="${pssPurcContract.endTime!}" onclick="cal(this);" req="结束日期" size="10" maxlength="10"></td>
        </tr>
        <tr>
          <th>送货方式</th>
          <td colspan="3"><select name="deliverMode"><#if DeliverMode??><#list DeliverMode as t><option value="${t.id}"<#if pssPurcContract.deliverMode?? && pssPurcContract.deliverMode=t.id> selected</#if>>${t.name}</option></#list></#if></select></td>
        </tr>
      </table>

    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>


</@page.html>